<!-- InfoCell -->
<template>
  <view class="infoCell flex" @click="handleClick">
    <view class="title mr10">
      <slot name="title">{{ title }}</slot>
    </view>
    <view class="desc flex-1">
      <slot name="desc">{{ desc }}</slot>
    </view>
  </view>
</template>

<script>
  export default {
    name: 'InfoCell',
    props: {
      title: String,
      desc: String
    },
    data() {
      return {}
    },
    methods: {
      handleClick() {
        this.$emit('click')
      }
    }
  }
</script>
<style lang="scss" scoped>
  .infoCell {
    width: 100%;
    margin-bottom: 23rpx;
    box-sizing: border-box;
    background: #fff;
    font-size: 28rpx;
    .title {
      width: 140rpx;
      text-align: left;
      color: #888;
    }
    .desc {
      color: #333;
    }
  }
</style>
